package zhongbo.java.air.dictionary.web.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@ApiModel("飞机信息请求参数")
public class AirCraftDto {
    
    @ApiModelProperty("ID (更新时必填)")
    private String id;

    @NotBlank(message = "ICAO代码不能为空")
    @Size(min = 1, max = 6, message = "ICAO代码长度应在1-6个字符之间")
    @ApiModelProperty(value = "ICAO代码", required = true)
    private String icaoCode;

    @NotBlank(message = "注册号不能为空")
    @ApiModelProperty(value = "注册号", required = true)
    private String registration;

    @NotBlank(message = "航空公司不能为空")
    @ApiModelProperty(value = "航空公司", required = true)
    private String airline;

    @NotBlank(message = "机型不能为空")
    @ApiModelProperty(value = "机型", required = true)
    private String aircraftType;

    @NotBlank(message = "状态不能为空")
    @Pattern(regexp = "ACTIVE|MAINTENANCE|RETIRED", message = "状态必须是ACTIVE、MAINTENANCE或RETIRED之一")
    @ApiModelProperty(value = "状态", required = true, allowableValues = "ACTIVE,MAINTENANCE,RETIRED")
    private String status;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIcaoCode() {
        return icaoCode;
    }

    public void setIcaoCode(String icaoCode) {
        this.icaoCode = icaoCode;
    }

    public String getRegistration() {
        return registration;
    }

    public void setRegistration(String registration) {
        this.registration = registration;
    }

    public String getAirline() {
        return airline;
    }

    public void setAirline(String airline) {
        this.airline = airline;
    }

    public String getAircraftType() {
        return aircraftType;
    }

    public void setAircraftType(String aircraftType) {
        this.aircraftType = aircraftType;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
} 